import Vue from 'vue'
import Router from 'vue-router'


//用户路由页面
import index from '@/view/portal/index';
import Register from '@/view/user/Register';
import Login from '@/view/user/Login';
import NotFind from '@/view/404';
import carousel from '@/view/portal/carousel';
import shoppingTrolley from '@/view/portal/shoppingTrolley';
import shoppingShow from '@/view/portal/shoppingShow';
import books from '@/view/portal/books';
import searchShow from '@/view/portal/searchShow';


Vue.use(Router)

export default new Router({
  mode: 'history',
  routes: [{
      path: '/Register',
      name: 'register',
      component: Register
    }, {
      path: '/Login',
      name: 'login',
      component: Login
    },
    {
      path: '*',
      name: 'notfind',
      component: NotFind,
      meta: {
        title: 404
      },
    },
    {
      path: '/index',
      name: 'index',
      component: index
    }, {
      path: '',
      component: index
    }, {
      path: '/carousel',
      component: carousel
    },
    {
      path: '/shoppingTrolley',
      component: shoppingTrolley
    }, {
      path: '/shoppingShow',
      name: 'shoppingShow',
      component: shoppingShow
    }, {
      path: '/books',
      name: 'books',
      component: books
    },{
      path:'/searchShow',
      name:'searchShow',
      component:searchShow
    }
  ]
})
